|
The Smart ComboBox Component > FSmartComboBox.setSharedObject(SO) |
FSmartComboBox.setSharedObject(SO)
Availability
Macromedia Flash Player 6.
Usage
myCombo.setSharedObject(SO);
Parameters
SO The name of the Shared Object where the history
will be stored.
Returns
Nothing.
Description
Sets the Shared Object that the component will store its history. If this method is not called, and a Shared Object name is not specified within the Property inspector, then a default Shared Object will be created and used by the component.
If a Shared Object was being used by the component, that Shared Object's data will be discarded.
Example
The following example shows how to use the setSharedObject method to create a Local Shared Object named "comboData". Then, the method passes the name of the Shared Object to the component in order to save the component's history data.
var lso = SharedObject.getLocal("comboData");
myCombo.setSharedObject(lso);
See also
FSmartComboBox.getSharedObject